<aside class="main-sidebar">

    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">

      <!-- /.search form -->

      <!-- Sidebar Menu -->
      <ul class="sidebar-menu" data-widget="tree">
        <!-- Optionally, you can add icons to the links -->

        <% var data = [
        {
          index:0,
          icons:"fa-home",
          path:"/",
          title:"首页",
          power:1
        },{
          index:1,
          icons:"fa-balance-scale",
          path:"/pro",
          title:"商品信息管理",
          power:1
        },{
          index:2,
          icons:"fa-image",
          path:"/banner",
          title:"轮播图信息管理",
          power:1
        },{
          index:3,
          icons:"fa-user",
          path:"/user",
          title:"用户信息管理",
          power:1
        },{
          index:4,
          icons:"fa-reorder",
          path:"/order",
          title:"订单信息管理",
          power:0
        },{
          index:5,
          icons:"fa-shopping-cart",
          path:"/shpping",
          title:"购物车信息管理",
          power:0
        },{
          index:6,
          icons:"fa-commenting-o",
          path:"/news",
          title:"消息信息管理",
          power:0
        }
        ] %>

        <% for(var i=0;i<data.length;i++){ %>
            <% if(power <= data[i].power){ %>
              <li class=<%= index===data[i].index ? 'active' : '' %>><a href="<%= data[i].path %>"><i class="fa <%= data[i].icon %>"></i> <span><%= data[i].title %></span></a></li>
          <% } %>
        <% } %>

        <!-- <li class=<%= index===0 ? 'active' : '' %>><a href="/"><i class="fa  fa-home"></i> <span>首页</span></a></li>
        <li class=<%= index===1 ? 'active' : '' %>><a href="/pro"><i class="fa  fa-balance-scale"></i> <span>商品信息管理</span></a></li>
        <li class=<%= index===2 ? 'active' : '' %>><a href="/banner"><i class="fa fa-image"></i> <span>轮播图信息管理</span></a></li>
        <li class=<%= index===3 ? 'active' : '' %>><a href="/user"><i class="fa fa-user-secret"></i> <span>用户信息管理</span></a></li>
        <li class=<%= index===4 ? 'active' : '' %>><a href="/shpping"><i class="fa  fa-cart-plus"></i> <span>购物车信息管理</span></a></li>
        <li class=<%= index===5 ? 'active' : '' %>><a href="/order"><i class="fa  fa-bars"></i> <span>订单信息管理</span></a></li>
        <li class=<%= index===6 ? 'active' : '' %>><a href="/news"><i class="fa fa-commenting-o"></i> <span>消息信息管理</span></a></li> -->
      </ul>
      <!-- /.sidebar-menu -->
    </section>
    <!-- /.sidebar -->
  </aside>